package chapter01;

import java.util.Scanner;

public class Test26_CircleArea {
    public static void main(String[] args) {
        System.out.println("请输入圆的半径：");
        Scanner scanner = new Scanner(System.in);
        int r = scanner.nextInt();
        System.out.println("圆的面积为："+getArea(r));
    }
    public static double getArea(int r){
        return 3.14*r*r;
    }
    public static double getArea(double r){
        return 3.14*r*r;
    }
}
